package com.pp.tourism.web.exception;

import lombok.Data;

@Data
public class ApiException extends RuntimeException {

    private ApiRtnCode code;

    public ApiException(String message, ApiRtnCode code) {
        super(message);
        this.code = code;
    }

    public ApiException(String message, Throwable cause, ApiRtnCode code) {
        super(message, cause);
        this.code = code;
    }
}
